package com.nowcoder.code.lcof;

public class JZ58 {


    public static void main(String[] args) {
        System.out.println(new JZ58().LeftRotateString("a", 10));
    }
    public String LeftRotateString(String str, int n) {

        if (str == null || str.isEmpty()) {
            return str;
        }
        int l = str.length();

        n = n % l;

        String a = str.substring(0, n);
        String b = str.substring(n);
        return b + a;
    }
}
